<html>
<body>
Reports calls like <code>s.substring(s.indexOf(x))</code> that can be replaced with <code>s.substringAfter(x)</code>.
<p>Using <code>s.substringAfter(x)</code> makes your code simpler.</p>
<p>The quick-fix replaces the <code>substring</code> call with <code>substringAfter</code>.</p>
<p><b>Example:</b></p>
<pre><code>
  fun foo(s: String) {
      s.substring(s.indexOf('x'))
  }
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  fun foo(s: String) {
      s.substringAfter('x')
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>